//
//  SEGAwardManager.h
//  ExcellentHome
//
//  Created by 揭婧雯 on 16/11/25.
//  Copyright © 2016年 陈区. All rights reserved.
//

#import <Foundation/Foundation.h>

#if __has_include(<SEGPlatform/SEGBussinessConstHeader.h>)
#import <SEGPlatform/SEGBussinessConstHeader.h>
#else
#import "SEGBussinessConstHeader.h"
#endif

#if __has_include(<Commom/SEGHTTPBusinessManager.h>)
#import <Commom/SEGHTTPBusinessManager.h>
#else
#import "SEGHTTPBusinessManager.h"
#endif

/**
 *  抽奖类型
 */
typedef NS_ENUM(NSUInteger, SEGAwardFromType) {
    SEGAwardFromType_OpenDoor = 0, /*开门抽奖*/
    SEGAwardFromType_FlashBox = 1 /*自助洗车评论抽奖*/
};

typedef void (^SEGAwardManagerCallBack)(BOOL isSucceed, NSString* errorMessage, SEGAwardForwardType frowardType, NSDictionary *dicData);

@interface SEGAwardManager : NSObject

@property (nonatomic, copy) SEGAwardManagerCallBack frowardCallBack;

+(instancetype)sharedManager;
+(void)destroyResource;

- (instancetype)initWithAwardType:(SEGAwardFromType)type;
/**
 *  检测是否有抽奖
 *  @param finished 网络请求完成后的操作
 */
- (void)requestCheckActivity:(SEGNetworkRequestCallBack)finished;

/**
 *  H5抽奖判断
 *  @param finished 网络请求完成后的操作
 */
- (void)requestCheckActivityAfterOpenDoor:(SEGAwardManagerCallBack)finished;

/**
 *  是否可以抽奖结果Draw Results
 *  @param finished 网络请求完成后的操作
 */
- (void)requestStartActByDoor:(SEGNetworkRequestCallBack)finished;

/**
 *  中奖结果
 *  @param finished 网络请求完成后的操作
 */
- (void)requestAwardsResult:(SEGNetworkRequestCallBack)finished;
@end
